<%@ Reference Page="~/blog.aspx" %>
<%@ Reference Control="~/Controls/GroupBlogTabs.ascx" %>
<%@ Reference Control="~/Controls/UserBlogTabs.ascx" %>
<%@ Page language="vb" EnableViewStateMac="true" Inherits="_2bMatesSite.view_blog_comments" CodeFile="view_blog_comments.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<%@ Register tagprefix="UserBlogTabs" Tagname="UserBlogTabs" Src="Controls/UserBlogTabs.ascx" %>
<%@ Register tagprefix="GroupBlogTabs" Tagname="GroupBlogTabs" Src="Controls/GroupBlogTabs.ascx" %>
<form id="Form1" method="post" runat="server">
	<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" height="100%">
		<tr>
			<td colspan="3">
				<table cellspacing="0" cellpadding="0" width="100%" border="0" class="page_title">
					<tr>
						<td><asp:literal id="litMainPageTitle" runat=server>My Blog</asp:literal></td>
						<td align="right"><asp:hyperlink id="hlBackToGroup" runat="server" class="white_link"></asp:hyperlink></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td valign="top" height="100%" class="main_table_border">
				<div class="content">
					<table cellSpacing="0" cellPadding="0" width="100%" border="0">
						<tr id="trUserCanceledMessage" runat=server class="hidden">
							<td align=center height="20"><asp:label id="lblErrMessageCanceled" runat=server cssclass="err_canceled_user">This member has cancelled their membership.</asp:label></td>
						</tr>
						<UserBlogTabs:UserBlogTabs id="ucBlogTabs" runat="server"></UserBlogTabs:UserBlogTabs>
						<GroupBlogTabs:GroupBlogTabs id="grpBlogTabs" runat="server"></GroupBlogTabs:GroupBlogTabs>	
						<tr>
							<td vAlign="top" align="center">
								<table cellSpacing="0" cellPadding="0" width="100%" border="0"> <!--width="500"-->
									<!--<tr>
										<td vAlign="top">
											<table cellspacing="0" cellpadding="0" border="0" width="100%">
												<tr>																					
													<td align="right" valign="top"><b><asp:hyperlink id="hlReturnToBlogList" runat=server cssclass="main_text_bold">Return to blog list</asp:hyperlink></b></td>
												</tr>
											</table>
										</td>
									</tr>-->
									<tr>
										<td class="small" align="center" valign="top">
											<TABLE class="blog_table" cellSpacing="0" cellPadding="0" width="100%" border="0">
												<TR>
													<TD align="left" class="main_text">
														<div class="content_trl">
															<asp:label id="lblDate" runat="server" Text="" cssClass="main_text_opposite"></asp:label><BR>
															<BR>
															<B><asp:label id="lblSubject" runat="server" Text=""></asp:label></B><BR>
															<BR>
															<PRE WRAP STYLE="WORD-WRAP:break-word"><asp:literal id="litBlogBody" runat="server" Text=""></asp:literal></PRE><br />
															<asp:label id="lblTimePosted" runat="server" Font-Bold="True"></asp:label>&nbsp;-&nbsp;
															<asp:label id="lblCommentsCount" runat="server" Font-Bold="True" Text=""></asp:label>&nbsp;-&nbsp;
															<asp:linkbutton id="lbAddComment" runat="server" Font-Bold="True" CssClass="main_text_bold" onclick="lbAddComment_Click">Add Comment</asp:linkbutton><asp:Label id="lblEditDash" runat=server>&nbsp;-&nbsp;</asp:Label>
															<asp:HyperLink id=hlEdit runat="server" CssClass="main_text_bold">Edit</asp:HyperLink><asp:Label id="lblEditDash2" runat=server>&nbsp;-&nbsp;</asp:Label>
															<asp:LinkButton id=lbRemove runat="server" CssClass="main_text_bold" onclick="lbRemove_Click">Remove</asp:LinkButton>
														</div>
													</TD>
												</TR>
											</TABLE>
										</td>
									</tr>																	
									<tr>
										<td vAlign="top"><asp:label id="lblNoBlog" runat="server" cssclass="main_text"><br>There are no comments posted.</asp:label><ASP:DATAGRID id="dgMessages" runat="server" PagerStyle-HorizontalAlign="Right" PagerStyle-Mode="NumericPages"
												Width="100%" GridLines="None" AutoGenerateColumns="False">
												<ItemStyle VerticalAlign="Top"></ItemStyle>
												<Columns>
													<asp:TemplateColumn>
														<itemstyle cssclass="main_text"></itemstyle>
														<ItemTemplate>
															<TABLE class="blog" cellSpacing="0" cellPadding="0" width="100%" border="0">
																<TR>
																	<TD id="blog" vAlign="top" align="left" width="100">
																		<div class="content_trl">
																			<asp:HyperLink id=hlSender runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "SenderName") %>' Font-Bold="True" CssClass="main_text_bold" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "MemberURL") %>' onclick='<%# DataBinder.Eval(Container.DataItem, "OnClickJS") %>'>
																			</asp:HyperLink>
																			<table cellspacing="0" cellpadding="0" border="0">
																				<tr>
																					<td class="data_grid_clear">
																						<asp:HyperLink id=hlSenderImage runat="server" CssClass="small_image" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "MemberURL") %>' ImageUrl='<%# DataBinder.Eval(Container.DataItem, "SenderImageURL") %>' onclick='<%# DataBinder.Eval(Container.DataItem, "OnClickJS") %>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "SenderNameFull") %>'></asp:HyperLink><BR>
																					</td>
																				</tr>
																				<tr>
																					<td align="center" class="data_grid_clear">	
																						<asp:image id="imgOnline" runat="server" imageurl='<%# DataBinder.Eval(Container.DataItem, "OnlineImg") %>' >
																						</asp:image>
																					</td>
																				</tr>																	
																			</table>	
																		</div>
																	</TD>
																	<TD align="left" valign=top class="main_text">
																		<div class="content_trl">
																		<BR>
																		<PRE style="WORD-WRAP: break-word" WRAP><asp:Literal id=litCommentBody runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Body") %>'></asp:Literal></PRE><br />
																		Posted by&nbsp;
																		<asp:HyperLink id=hlSenderName runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "SenderNameFull") %>' Font-Bold="True" CssClass="main_text_bold" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "MemberURL") %>' onclick='<%# DataBinder.Eval(Container.DataItem, "OnClickJS") %>' >
																		</asp:HyperLink>&nbsp;on&nbsp;
																		<asp:Label id=lblDatePosted runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Date") %>'>
																		</asp:Label>&nbsp;at&nbsp;
																		<asp:Label id=lblTime runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Time") %>'>
																		</asp:Label><BR>
																		<BR>
																		<asp:LinkButton id="lbApprove" runat="server" CssClass="main_text_bold" CommandName="Approve" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "BlogID") %>' CausesValidation="False" Visible='<%# DataBinder.Eval(Container.DataItem, "ApproveVisibility") %>'>Approve</asp:LinkButton>
																		<asp:LinkButton id="Linkbutton1" runat="server" CssClass="main_text_bold" CommandName="Remove" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "BlogID") %>' CausesValidation="False" Visible='<%# DataBinder.Eval(Container.DataItem, "RemoveVisibility") %>'>Remove</asp:LinkButton>
																		</div>
																	</td>
																</tr>
															</TABLE>
														</ItemTemplate>
														<FooterStyle HorizontalAlign="Left" VerticalAlign="Top"></FooterStyle>
													</asp:TemplateColumn>
												</Columns>
												<PagerStyle HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
											</ASP:DATAGRID><br>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</div>
			</td>
			<!-- BEGIN SKYSCRAPER ADVERTISEMENT -->	
			<!--
			<td class="small" width="10">&nbsp;</td>
			<td class="border_adv" vAlign="top" width="203" height="100%">
				<table cellSpacing="1" cellPadding="0" width="100%" border="0">
					<tr>
						<td class="small" width="10">&nbsp;</td>
						<td class="advertisement" width="193"><asp:Literal id="litSkyscraperAdvertisement" runat=server></asp:literal></td>
					</tr>
				</table>
			</td>-->
			<!-- END SKYSCRAPER ADVERTISEMENT -->
			</tr>
	</table>
</form>
